import request from '@/utils/request';
import { stringify } from 'qs';

//门店列表
export async function getTableDataOp(params) {
  return request(`/zjf-wms/store/page?${stringify(params)}`);
}

// 拿货员/退货员列表
export async function queryTakeUserList(params) {
  return request(`/blade-user/childUsers?${stringify(params)}`);
}

//区域编码模糊查询
export async function queryAreaCode(params) {
  return request(`/zjf-wms/storecodesort/selectListByName?${stringify(params)}`);
}

//是否展示线下支付字段
export async function queryIsOpenOfflinePay() {
  return request('/blade-user/usercfg/queryIsOpenOfflinePay');
}

//模糊查询下拉供应商列表 storeName：供应商名称（门店管理)
export async function queryStoreFactoryList(params) {
  return request(`/blade-goods/zjfstore/list/store/fuzzyQueryPage?${stringify(params)}`);
}

//门店编码模糊查询
export async function selectStoreAreasByName(params) {
  return request(`/zjf-wms/store/selectStoreAreasByName?${stringify(params)}`);
}